package com.dingwen.treasure.file.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.io.File;

/**
 * 　M3U8Properties
 * 　@author dingwen
 * 　@date 2022/7/27
 *
 * @author dingwen
 */
@Getter
@Setter
@Configuration(proxyBeanMethods = false)
@ConfigurationProperties(prefix = "treasure.file.m3u8")
public class M3U8Properties {

    /**
     * ffmpegPath
     */
    private String ffmpegPath = "/Users/dingwen/soft/ffmpeg";


    /**
     * ffprobePath
     */
    private String ffprobePath = "/Users/dingwen/soft/ffprobe";

    /**
     * 临时文件目录
     */
    private String tempPath = "file".concat(File.separator).concat("tmp").concat(File.separator);


    /**
     * 切片文件目录
     */
    private String m3u8Path = "file".concat(File.separator).concat("m3u8").concat(File.separator);


    /**
     * 播放地址
     */
    private String playBaseUrl = "http://47.98.252.224/video";

}
